import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { BaseEntity } from "./base.entity";

@Entity({ name: 'UserCommemorationDay' })
export default class UserCommemorationDayEntity extends BaseEntity {
  @PrimaryGeneratedColumn()
  SysID: number;

  @Column({ type: 'bigint'})
  BaseSysID: number;

  @Column({ type: 'bigint' })
  UserSysID: number;

  @Column({ type: 'varchar', length: 100 })
  CommemorationName: string;  

  @Column({ type: 'varchar', length: 100 })
  SingleCommemorationName: string; 

  @Column({ type: 'varchar', length: 25 })
  BaseCommemorationDate: string; 

  @Column({ type: 'varchar', length: 25 })
  CommemorationDate: string; 

  @Column({ type: 'varchar', length: 25 })
  LunarDate: string; 

  @Column({ type: 'varchar', length: 25 })
  LunarNumDate: string; 

  @Column({ type: 'varchar', length: 25 })
  SolarDate: string; 

  @Column({ type: 'int' })
  IntervalDay: number; 

  /**
   * 阴历还是阳历(0阴历1阳历)
   */
  @Column({ type: 'int' })
  LunarOrSolar: number; 

  @Column({ type: 'varchar', length: 5 })
  Weekly: string; 

  /**
   * 提醒时间(0:当天1:提前一天2:提前两天3:提前三天4:提前一星期5:提前一个月6:每天提醒,99不提醒)
   */
  @Column({ type: 'int' })
  RemindDate: number; 

  @Column({ type: 'varchar', length: 5 })
  RemindTime: string; 

  /**
   * 循环周期(0:每天1每隔一天2:每一星期3:每一个月,99不循环)
   */
  @Column({ type: 'int' })
  Circulation: number; 

  @Column({ type: 'int' })
  Edited: number; 

  @Column({ type: 'varchar', length: 10 })
  UpdateDate: string; 

  @Column({ type: 'int' })
  CountDown: number; 

  @Column({ type: 'varchar', length: 10 })
  SendSmsIntervalDate: string; 
}